package com.middlegroup.payadmin.service;

import com.baomidou.mybatisplus.service.IService;
import com.middlegroup.common.model.TransRequest;
import com.middlegroup.common.model.TransResult;
import com.middlegroup.payadmin.pojo.po.SystemCfg;

import java.util.List;
import java.util.Map;

/**
 *
 * @author pc
 * @date 2019/1/15
 */
public interface SystemCfgService extends IService<SystemCfg> {



    /**刷新配置
     * @return
     */
    Map<String,Map<String,String>> refreshConfigs();

    /**获取配置
     * @param category
     * @param name
     * @return
     */
    SystemCfg getConfig(String category, String name);

    /**根据category+name获取配置值
     * @param category
     * @param name
     * @return
     */
    String getConfigString(String category, String name);

    /**调用subjectpay
     * @param method
     * @param request
     * @return
     */
    TransResult post(String method, TransRequest request);
}
